package com.ostrich.cloud.common.resultcode;

public enum CommonResultCode implements ResultCode {


    SUCCESS(200,"执行成功"),

    GENERIC_ERROR(500,"系统错误"),

    ILLEGAL_STATE(506,"异常状态"),

    ILLEGAL_ARGUMENTS(400,"参数错误"),

    DATA_NOT_FOUND(404,"数据未找到"),

    NOT_AUTHORIZED(403,"没有权限")
    ;

    private  int code;
    private String message;

    CommonResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }


}
